package oberver.example;

/**
 * @Author：LJ
 * @Description：
 * @Date: 2017/11/28
 * @Modified By:
 */
public class Client {
    public static void main(String[] args) {
        Observer lisi=new LiSi();
        Observer liuli=new LiuSi();
        HanFeiZi hanFeiZi=new HanFeiZi();
        hanFeiZi.addObserver(lisi);
        hanFeiZi.addObserver(liuli);
        hanFeiZi.haveBreakfast();
    }
}
